home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2589 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: news.tu-chemnitz.de!news
  2. From: hfst@hrz.tu-chemnitz.de (Hans Steffani)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: A question about STRING.
  5. Date: 22 Jan 96 17:36:04 GMT
  6. Organization: University of Technology Chemnitz, FRG
  7. Message-ID: <4e0i24$8f0@pyrrhus-f.hrz.tu-chemnitz.de>
  8. References: <4e0akh$853@erinews.ericsson.se>
  9. NNTP-Posting-Host: mmu.hrz.tu-chemnitz.de
  10.  
  11. etlwihe@etlxdmx.ericsson.se ( wei he (martletts) ) writes:
  12.  
  13. >Hi there,
  14.  
  15. >I have a problem with 'C' and need your help.
  16.  
  17. >In my program, there is a variable MUTLI_RECORDS defined as char, which has a
  18. >typical string as following:
  19.  
  20. >1,0,a,map010017000802532236,1,pp,0.2,1,0,map010017000802532236,acc,1,0. ...
  21.  
  22. >In fact, this string contains many records. Each record contains seven columns.
  23. >The columns in each record are seperated by the comma ','. Each record is 
  24. >terminated by a full stop '.'.
  25.  
  26. Maybe you should have a look at the string library functions (i.e.
  27. the ones which start with str) expecially at strtok(), which may
  28. help you to solve your problems.
  29.  
  30. If further examination is necessary you also may have a look
  31. at lex an tool to create lexical analysators.
  32.  
  33. Hans Friedrich Steffani
  34. --
  35. Hans Friedrich Steffani
  36. Institut fuer Elektrische Maschinen und Antriebe
  37. TU Chemnitz-Zwickau
  38. e-mail: hans.steffani@e-technik.tu-chemnitz.de
  39.